package com.jekun.helloworld.designmode.cor;

/**
 * @author Administrator
 */
public class ConcreteHandler extends Handler {
    @Override
    public void handleRequest(String request) {
        //请求request满足条件
        if (1 == 1) {
            //处理请求；
            System.out.println();
        } else {
            //转发请求
            this.successor.handleRequest(request);
        }
    }
}